package group.hhsw.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import group.hhsw.common.model.User;
import group.hhsw.common.model.params.LoginParam;
import group.hhsw.common.model.params.RegisterParam;
import group.hhsw.common.model.params.SetUserParam;
import group.hhsw.common.model.vo.UserVo;
import group.hhsw.common.utils.Result;

import java.util.List;

public interface UserService extends IService<User> {

    String getUserArea(Long id);

    String getUserLabel(Long id);

    List<UserVo> getAllUsers();

    Result login(LoginParam loginParam);

    Result currentUser(String token);

    Boolean checkLogin(String token);

    Result register(RegisterParam registerParam);

    Result logout(String token);

    Result updateUser(SetUserParam setUserParam);

    Boolean whitelistDetection(Long id);

}
